package com.aotain.nyx.flink;

import java.io.Serializable;

/**
 * 基础通用Tuple，包含UDII数据用于流量检测的公共字段
 * @author Administrator
 *
 */
public class BasicTuple implements Serializable{
//	String tripleKey = dip + "|" + sip +"|" + url + "|" 
//			+ gis + "|" + idc + "|" + useragent + "|" + cookie;

	/**
	 * 
	 */
	private static final long serialVersionUID = 4000260191169785212L;
	private String dip;
	private String sip;
	private String dport;
	private String sport;
	private String gis;
	private String idc;
	private Long nupstreamoctets = 0L;
	private Long nupstreampacket = 0L;
	private Long sessionnum = 0L;
	private Long attackpacket = 0L;
	private String flowDirection = "IN";
	
	public void setDestIP(String destip) {
		dip = destip;
	}
	
	public String getDestIP() {
		return dip;
	}
	
	public void setSourceIP(String sourceip) {
		sip = sourceip;
	}
	
	public String getSourceIP() {
		return sip;
	}
	
	public void setDestPort(String destport) {
		dport = destport;
	}
	
	public String getDestPort() {
		return dport;
	}
	
	public void setSourcePort(String sourceport) {
		sport = sourceport;
	}
	
	public String getSourcePort() {
		return sport;
	}
	
	public void setGIS(String pgis) {
		gis = pgis;
	}
	
	public String getGIS() {
		return gis;
	}
	
	public void setIDC(String pidc){
		idc = pidc;
	}
	
	public String getIDC() {
		return idc;
	}
	
	public Long getUpStreamOctets() {
		return nupstreamoctets;
	}
	
	public void setUpStreamOctets(Long upStreamOctets) {
		nupstreamoctets = upStreamOctets;
	}
	
	public Long getUpStreamPacket() {
		return nupstreampacket;
	}
	
	public void setUpStreamPacket(Long upStreamPacket) {
		nupstreampacket = upStreamPacket;
	}
	
	public Long getSessionNum() {
		return sessionnum;
	}
	
	public void setSessionNum(Long sessionNum) {
		sessionnum = sessionNum;
	}
	
	public Long getAttackPacket() {
		return attackpacket;
	}
	
	public void setAttackPacket(Long packet) {
		attackpacket = packet;
	}
	
	/**
	 * 流量方向 IN  以目的IP为主
	 *       OUT 以源IP为主
	 * @return
	 * @Description:
	 */
	public String getFlowDirection() {
		return flowDirection;
	}
	
	/**
	 * 流量方向 IN  以目的IP为主
	 *       OUT 以源IP为主
	 * @param flowdirection
	 * @Description:
	 */
	public void setFlowDirection(String flowdirection) {
		flowDirection = flowdirection;
	}
}
